﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FazaDemo.Data;

namespace FazaDemo.BL.DataAccess
{
    public class TsSysEcqRepository
    {

        private readonly IRepository<TS_SYS_ECQ, int> _repository;

        public TsSysEcqRepository(IRepository<TS_SYS_ECQ, int> repository)
        {
            _repository = repository;
        }

        public TS_SYS_ECQ GetEcqById(int id)
        {
            return _repository.FindOne(e => e.ID == id);
        }

    }
}
